import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import '../../provider/_providers.dart';
import 'contact_sort_ui.dart';
import 'contact_list_ui.dart';


class ContactPage extends ConsumerWidget {


ContactPage({super.key});


  @override
  Widget build(BuildContext context, WidgetRef ref) {

    ref.read(contactProvider).Load(context);

    final _screen = MediaQuery.of(context).size;

    var sortlist = ContactSortUI();

    var items = Row(
      mainAxisAlignment: MainAxisAlignment.start,
      children: [
        Container(width: _screen.width * 0.25, child: sortlist),
        VerticalDivider(width: 1.0),
        Expanded(child: ContactListUI()),
      ],
    );

    return items;
  }
}
